package com.sofeteem.ikun.model;

import java.awt.*;

public class Bullet {

    private int x;
    private int y;
    private int width;
    private int height;
    private int speed;
    private int damage;

    public Bullet(int x, int y) {
        this.x = x;
        this.y = y;
        this.width = 5;
        this.height = 10;
        this.speed = -10;
        this.damage = 20;
    }

    public void move() {
        y += speed;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public int getWidth() {
        return width;
    }

    public int getHeight() {
        return height;
    }

    public int getDamage() {
        return damage;
    }

    public Rectangle getBounds() {
        return new Rectangle(x, y, width, height);
    }
}
